<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .search{
            width: 200px;
            height: 40px;
            /* border: 1px solid #666; */
            margin-left: 20px;
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            margin-top: 20px;
            background: #eee;
        }
        input{
            width: 150px;
            height: 40px;
            left: 0;
            padding-left: 10px;
            background: #eee;
        }
        button{
            width: 50px;
            height: 40px;
            background: url(images/search.png) no-repeat center;
            right: 0;
        }
        input,button{
            outline: none;
            position: absolute;
            border: none;
            top: 0;
        }
    </style>
</head>
<body>
    <div class="search">
        <input type="text" placeholder="搜索">
        <button></button>
    </div>
</body>
</html>